<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{sysAddressProvinceBean.page}"/>
		<f:event type="preRenderView" listener="#{sysAddressProvinceBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sys Address Province entities"/>

	<ui:define name="header">
		Sys Address Province
	</ui:define>

	<ui:define name="subheader">
		Search Sys Address Province entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="sysAddressProvinceBeanExampleAddrProvinceCode" value="Addr Province Code:"/>
						<h:panelGroup>
							<h:inputText id="sysAddressProvinceBeanExampleAddrProvinceCode" maxLength="10" value="#{sysAddressProvinceBean.example.addrProvinceCode}"/>
							<h:message for="sysAddressProvinceBeanExampleAddrProvinceCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysAddressProvinceBeanExampleAddrProvinceName" value="Addr Province Name:"/>
						<h:panelGroup>
							<h:inputText id="sysAddressProvinceBeanExampleAddrProvinceName" value="#{sysAddressProvinceBean.example.addrProvinceName}"/>
							<h:message for="sysAddressProvinceBeanExampleAddrProvinceName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="sysAddressProvinceBeanExampleAddrRegionNo" value="Addr Region No:"/>
						<h:panelGroup>
							<h:inputText id="sysAddressProvinceBeanExampleAddrRegionNo" value="#{sysAddressProvinceBean.example.addrRegionNo}"/>
							<h:message for="sysAddressProvinceBeanExampleAddrRegionNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{sysAddressProvinceBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{sysAddressProvinceBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="sysAddressProvinceBeanPageItems" styleClass="data-table" value="#{sysAddressProvinceBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Addr Province Code"/>
					</f:facet>
					<h:link outcome="/form/sysAddressProvince/view">
						<f:param name="id" value="#{_item.addrProvinceNo}"/>
						<h:outputText id="itemAddrProvinceCode" value="#{_item.addrProvinceCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Addr Province Name"/>
					</f:facet>
					<h:link outcome="/form/sysAddressProvince/view">
						<f:param name="id" value="#{_item.addrProvinceNo}"/>
						<h:outputText id="itemAddrProvinceName" value="#{_item.addrProvinceName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Addr Region No"/>
					</f:facet>
					<h:link outcome="/form/sysAddressProvince/view">
						<f:param name="id" value="#{_item.addrProvinceNo}"/>
						<h:outputText id="itemAddrRegionNo" value="#{_item.addrRegionNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{sysAddressProvinceBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
